<h2><?php echo $this->message; ?></h2>
<?php if(count($this->t)): ?>
	<table>
	<tr>
		<th>Title</th>
		<th>Logo</th>
		<th>Description</th>
		<th>Visible</th>
		<th>CRUD</th>
	</tr>
	<?php foreach($this->t as $row):?>
		<tr>
			<td><?php echo $row->title; ?></td>
			<td><?php echo $row->logo; ?></td>
			<td><?php echo $row->descr; ?></td>
			<td><?php echo $row->visible; ?></td>
			<td>
			<a href="<?php echo $this->url(array('action' => 'edit', 'id' => $row->id), 'at', true); ?>">Edit</a>
			&nbsp;
			<a href="<?php echo $this->url(array('action' => 'delete', 'id' => $row->id), 'at', true); ?>">X</a>		
			</td>
		</tr>
	<?php endforeach;?>
	</table>
<?php else: ?>
	<h1>There are no tournaments</h1>
<?php endif; ?>
<?php
	if($this->t instanceof Zend_Paginator){
		echo $this->paginationControl($this->t, 'Sliding', 'includes/paginationcontrol.phtml'); 
	}
?> 